<template>
  <div>
    <h1 v-dxd>
      <span>94525415</span>
    </h1>
    <span v-dxd v-xxd>哈哈</span>
  </div>
</template>

<script>
export default {
  name:'App',
  directives:{
    dxd(ele){
      ele.style.backgroundColor = 'red'
    }
  }
}
</script>

<style>

</style>